package com.tarena.lbs.basic.web.mapper;


import com.tarena.lbs.pojo.basic.dos.AdminDO;
import com.tarena.lbs.pojo.basic.query.AdminQuery;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminDO record);

    int insertSelective(AdminDO record);

    AdminDO selectByPrimaryKey(Integer id);

    List<AdminDO> selectList(AdminQuery adminQuery);

    int updateByPrimaryKeySelective(AdminDO record);

    int updateByPrimaryKey(AdminDO record);

    int deleteById(Integer id);

    int resetPasswordById(@Param("id") Integer id,@Param("accountPassword") String accountPassword);

    int assignRoles(@Param("id") Integer id,@Param("accountType")  Integer accountType);
}